package _chujisuanfa;


public  class _01{
    public int removeDuplicates(int[] nums) {
        int m =1;
        int c=nums[0];
        int n=nums.length;
        for(int i=1;i<n;i++){
            if(nums[i]!=c){
                c=nums[i];
                nums[m]=nums[i];
                m++;
            }
        }
        return m;
    }
    public static void main(String[] args) {
        System.out.println("fuck");
    }
}